package com.genymobile.scrcpy;

import android.content.AttributionSource;
import android.content.Context;
import android.content.ContextWrapper;

/* loaded from: classes2.dex */
public final class FakeContext extends ContextWrapper {
    private static final FakeContext INSTANCE = new FakeContext();
    public static final String PACKAGE_NAME = "com.android.shell";
    public static final int ROOT_UID = 0;

    public static FakeContext get() {
        return INSTANCE;
    }

    private FakeContext() {
        super(Workarounds.getSystemContext());
    }

    @Override // android.content.ContextWrapper, android.content.Context
    public String getPackageName() {
        return "com.android.shell";
    }

    @Override // android.content.ContextWrapper, android.content.Context
    public String getOpPackageName() {
        return "com.android.shell";
    }

    @Override // android.content.ContextWrapper, android.content.Context
    public AttributionSource getAttributionSource() {
        AttributionSource.Builder builder = new AttributionSource.Builder(2000);
        builder.setPackageName("com.android.shell");
        return builder.build();
    }

    @Override // android.content.ContextWrapper, android.content.Context
    public int getDeviceId() {
        return 0;
    }

    @Override // android.content.ContextWrapper, android.content.Context
    public Context getApplicationContext() {
        return this;
    }
}